local skel = fk.CreateSkill {
  name = "emo__lianda",
}

Fk:loadTranslationTable{
  ["emo__lianda"] = "无情连打",
  [":emo__lianda"] = "每回合限一次，你使用伤害牌后，可以摸本回合使用伤害牌次数张牌。",

  ["#emo__lianda-ask"] = "无情连打：你可以摸 %arg 张牌！（本回合限一次）",

  ["$emo__lianda1"] = "哼，一个能打的都没有",
  ["$emo__lianda2"] = "还有谁？",
}

skel:addEffect(fk.CardUseFinished, {
  anim_type = "drawcard",
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(skel.name) and target == player and data.card.is_damage_card
    and player:usedSkillTimes(skel.name) == 0
  end,
  on_cost = function (self, event, target, player, data)
    local num = #player.room.logic:getEventsOfScope(GameEvent.UseCard, 999, function(e)
      local use = e.data
      return use.from == player and use.card.is_damage_card
    end, Player.HistoryTurn)
    return player.room:askToSkillInvoke(player, {
      skill_name = skel.name, prompt = "#emo__lianda-ask:::"..num,
    })
  end,
  on_use = function (self, event, target, player, data)
    local num = #player.room.logic:getEventsOfScope(GameEvent.UseCard, 999, function(e)
      local use = e.data
      return use.from == player and use.card.is_damage_card
    end, Player.HistoryTurn)
    player:drawCards(num, skel.name)
  end,
})

return skel
